home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / System / Shutdown FX / Shutdown FX ƒ / sfx code ƒ / sfx environment.c < prev    next >
Text File  |  1993-11-13  |  1KB  |  42 lines

  1. /**********************************************************************\
  2.  
  3. File:        sfx environment.c
  4.  
  5. Purpose:    This module handles zone changes so that our detached
  6.             code handle stays around after the INIT is done.
  7.             
  8.  
  9. Shutdown FX -=- graphic effects on shutdown
  10. Copyright (C) 1993 Mark Pilgrim & Dave Blumenthal
  11.  
  12. This program is free software; you can redistribute it and/or modify
  13. it under the terms of the GNU General Public License as published by
  14. the Free Software Foundation; either version 2 of the License, or
  15. (at your option) any later version.
  16.  
  17. This program is distributed in the hope that it will be useful,
  18. but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. GNU General Public License for more details.
  21.  
  22. You should have received a copy of the GNU General Public License
  23. along with this program in a file named "GNU General Public License".
  24. If not, write to the Free Software Foundation, 675 Mass Ave,
  25. Cambridge, MA 02139, USA.
  26.  
  27. \**********************************************************************/
  28.  
  29. #include "sfx environment.h"
  30. #include "sfx init.h"
  31.  
  32. void PrepareEnvironment(void)
  33. {
  34.     saveZone = GetZone();
  35.     SetZone(SysZone);
  36. }
  37.  
  38. void RestoreEnvironment(void)
  39. {
  40.     SetZone(saveZone);
  41. }
  42.